package Test4;

public class CompareStudent implements Comparable{
    @Override
    public int compareTo(Object obj) {
        Student student= (Student) obj;
        return student.getGrade();
    }
}
